/*
 * Copyright 2003-2005 (c) Live Media Pty Ltd. <argot@einet.com.au> 
 *
 * This software is licensed under the Argot Public License 
 * which may be found in the file LICENSE distributed 
 * with this software.
 *
 * More information about this license can be found at
 * http://www.einet.com.au/License
 * 
 * The Developer of this software is Live Media Pty Ltd,
 * PO Box 4591, Melbourne 3001, Australia.  The license is subject 
 * to the law of Victoria, Australia, and subject to exclusive 
 * jurisdiction of the Victorian courts.
 */

#ifndef METAMAP
#define METAMAP

#ifdef __cplusplus
extern "C" {
#endif


extern type_name meta_map_name;

typedef struct meta_map
{
	meta_expression expression;
	int abstract;
	int concrete;
}
meta_map;

int meta_map_get_abstract_type( meta_map * mm );
int meta_map_get_concrete_type( meta_map * mm );

void meta_map_set_abstract_type( meta_map * mm, int type );
void meta_map_set_concrete_type( meta_map * mm, int type );

void meta_map_init( meta_map * mr, int abstract, int concrete );

int meta_map_read( type_input_stream * in, type_element * element );

int meta_map_write( type_output_stream * out, void * o, type_element * element );

int meta_map_do_read( type_input_stream * in, type_element * element );

int meta_map_do_write( type_output_stream * out, void * o, type_element * element );


#ifdef __cplusplus
}
#endif

#endif
